import request from '@/utils/request'

// 查询代理商分账润规则列表
export function listPlatformShare(query) {
  return request({
    url: '/business/platformShare/list',
    method: 'get',
    params: query
  })
}

// 查询代理商分账润规则详细
export function getPlatformShare(id) {
  return request({
    url: '/business/platformShare/' + id,
    method: 'get'
  })
}

// 新增代理商分账润规则
export function addPlatformShare(data) {
  return request({
    url: '/business/platformShare',
    method: 'post',
    data: data
  })
}

// 修改代理商分账润规则
export function updatePlatformShare(data) {
  return request({
    url: '/business/platformShare',
    method: 'put',
    data: data
  })
}

// 删除代理商分账润规则
export function delPlatformShare(id) {
  return request({
    url: '/business/platformShare/' + id,
    method: 'delete'
  })
}
